package com.hiwhitley.himei.contract;

import com.hiwhitley.himei.entity.GankDay;
import com.hiwhitley.himei.entity.GankItem;
import com.hiwhitley.himei.mvpframe.BaseModel;
import com.hiwhitley.himei.mvpframe.BasePresenter;
import com.hiwhitley.himei.mvpframe.BaseView;

import java.util.List;

import rx.Observable;

/**
 * Created by hiwhitley on 17-2-14.
 */

public interface GankContract {

    interface Model extends BaseModel {
        Observable<GankDay> getGankDay(int year, int month, int day);
    }

    interface View extends BaseView {
        void showGankDay(List<GankItem> list, boolean isLoadMore);
    }

    abstract class Presenter extends BasePresenter<Model, View> {
        public abstract void onRefresh();
        public abstract void onLoadingMore();
    }


}
